import {GET_THING, GET_THING_BY_NAME, GET_EVENT_LIST} from '@/services/api'
import {request, METHOD} from '@/utils/request'

export async function getThings(filter) {
  return request(GET_THING, METHOD.GET, filter);
}

export async function getThingTypeByName(filter) {
  return request(GET_THING_BY_NAME, METHOD.GET, filter);
}

export async function getEventList() {
  return request(GET_EVENT_LIST, METHOD.GET);
}
